const _import =
  process.env.NODE_ENV === 'production'
    ? file => () => import('@/views/modules/' + file + '.vue')
    : file => require('@/views/modules/' + file + '.vue').default

export default [
  {
    path: 'admin/information',
    component: _import('information/information'),
    name: 'admin-information',
    meta: { title: '标签信息管理', type: 'admin', permission: 'front:page:admin:information' }
  },
  {
    path: 'admin/responser',
    component: _import('admin/responser/responser'),
    name: 'admin-responser',
    meta: { title: '责任人管理', permission: 'front:page:admin:responser' }
  },
  {
    path: 'admin/database',
    component: _import('admin/database/database'),
    name: 'admin-database',
    meta: { title: '同步数据库管理', permission: 'front:page:admin:database' }
  },
  {
    path: 'admin/platform',
    component: _import('admin/platform/platform'),
    name: 'admin-platform',
    meta: { title: '上线平台管理', permission: 'front:page:admin:platform' }
  },
  {
    path: 'admin/information/update',
    component: _import('admin/information/update/update'),
    name: 'admin-information-update',
    meta: { title: '标签信息批量更新', permission: 'front:page:admin:information:update' }
  },
  {
    path: 'admin/catalog',
    component: _import('admin/catalog/catalog'),
    name: 'admin-catalog',
    meta: { title: '标签体系批量卸载', permission: 'front:page:admin:catalog' }
  },
  {
    path: 'admin/audit',
    component: _import('admin/audit/audit'),
    name: 'admin-audit',
    meta: { title: '审核发布中心', permission: 'front:page:admin:audit' }
  }
]
